[PHP] solves the problem of html webpage garbled characters, and phphtml webpage garbled characters. [PHP] solves the problem of html webpage garbled characters. phphtml webpage garbled characters often encounter webpage garbled characters when you
Database: mysql database
When the dos window inserts data into the mysql database, data cannot be inserted if it contains Chinese characters. The reason is that the character_set_client encoding is ut8 by default, while the dos window encoding is
[PHP] solves the problem of webpage garbled characters. when you create a webpage by yourself, you may encounter webpage garbled characters.
In fact, there are several main reasons for webpage garbled text. The following provides a solution.
1.
Uncode and UTF-8 of encoding: Bloody details of the Uncode and UTF-8: Bloody details and encountered the problem of encoding, describe it with this sentence in the "no-nonsense XML" of the two tigers.
The only way to solve the problem is to clarify
But English does not usually have coding problems, only Chinese data will have this problem. For example, when you use Zend Studio or EditPlus to write the program, using the GBK code, if the data needs to enter the database, and the database code
The--http://www.jb51.net/article/21451.htmMb_convert_encoding This function is used to convert the encoding. It turns out that the concept of program coding is not understood, but it seems to be a bit enlightened now. However, there is generally no
However, the English language generally does not have Encoding Problems. Only Chinese data can have this problem. For example, if you use Zend studio or editplus to write
Program The GBK encoding is used. If the data needs to be imported into the
Mb_convert_encoding is used to convert the encoding. I have never understood the concept of program encoding, but now it seems a bit open. However, the English language generally does not have encoding problems. only Chinese data can have this
However, there is generally no coding problem in English, only the Chinese data will have this problem. For example, when you write a program with Zend Studio or editplus, using GBK encoding, if the data needs to enter the database, and the database
Mb_convert_encoding This function is used to convert the encoding.However, there is generally no coding problem in English, only the Chinese data will have this problem. For example, when you write a program with Zend Studio or editplus, using GBK
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.